package base.day12;

import java.util.Scanner;

public class Split {
    public static void main(String[] args) {
        Scanner sc=new Scanner(System.in);
        System.out.println("请输入：");
        String s=sc.nextLine();
        String[] sarr = s.split(",");

        Student student=new Student(sarr[0], sarr[1]);
        System.out.println(student.getName()+","+student.getAge());
    }
}
